package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 游记评论表
 */
@Data
@JsonIgnoreProperties("handler")
public class Comment extends BaseDomain {

    //评论内容
    private String content;
    //游记ID
    private Travel travel;
    //评论人ID
    private User commentUser;
    //评论时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    private Date commentTime;
    //回复集合
    private List<Reply> replyList;
    //点赞数
    //查询需要参数,评论ID,类型写死
    private Integer countZan;
    //判断某个用户是否点赞
    private int status;
}